package top.hidoctor.auscultation.bean;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class UserBean {

    /**
     * page : 1
     * pageSize : 20
     * result : [{"avatar":"","birthday":636739200000,"experience":0,"gender":2,"hospital":{"hospitalName":"加密测试医院","id":"125185458752716800"},"id":"133973203751010304","idcardPhoto":"","isDeleted":1,"level":0,"phone":"13012312313","realName":"测试2号","role":{"id":"3124297241460736","name":"审核医师"},"specialty":"46593807856173056","specialtyName":"临床医学","status":2},{"avatar":"user/2020/12/21/1608530635973_0.jpg","birthday":770400000000,"experience":0,"gender":1,"hospital":{"hospitalName":"听诊研究中心","id":"67918961378852864"},"id":"128860075140841472","idcardPhoto":"","isDeleted":1,"level":0,"phone":"18659161678","realName":"审核医生","role":{"id":"3124297241460736","name":"审核医师"},"specialty":"46593807470297088","specialtyName":"基础医学","status":2},{"avatar":"user/2020/12/15/1608023916082_0.jpg","birthday":770400000000,"experience":0,"gender":1,"hospital":{"hospitalName":"听诊研究中心","id":"67918961378852864"},"id":"126734738055495680","idcardPhoto":"","isDeleted":1,"level":0,"phone":"18659161673","realName":"加密标注","role":{"id":"3124297098854400","name":"标注医师"},"specialty":"46593807470297088","specialtyName":"基础医学","status":2},{"avatar":"user/2020/12/15/1608021695275_0.jpg","birthday":770400000000,"experience":0,"gender":1,"hospital":{"hospitalName":"听诊研究中心","id":"67918961378852864"},"id":"126730686462689280","idcardPhoto":"","isDeleted":1,"level":0,"phone":"18659161672","realName":"加密测试标注","role":{"id":"3124297098854400","name":"标注医师"},"specialty":"46593807856173056","specialtyName":"临床医学","status":2},{"avatar":"portrait/doctor_1_01.png","birthday":770400000000,"experience":0,"gender":1,"hospital":{"hospitalName":"听诊研究中心","id":"67918961378852864"},"id":"115087661999325184","idcardPhoto":"","isDeleted":1,"level":0,"phone":"18659161677","realName":"标注医师","role":{"id":"3124297098854400","name":"标注医师"},"specialty":"46593808095248384","specialtyName":"预防医学","status":2}]
     * totalItems : 5
     * totalPages : 1
     */

    private Integer page;
    private Integer pageSize;
    private Integer totalItems;
    private Integer totalPages;
    private List<ResultBean> result;

    @NoArgsConstructor
    @Data
    public static class ResultBean {
        /**
         * avatar :
         * birthday : 636739200000
         * experience : 0
         * gender : 2
         * hospital : {"hospitalName":"加密测试医院","id":"125185458752716800"}
         * id : 133973203751010304
         * idcardPhoto :
         * isDeleted : 1
         * level : 0
         * phone : 13012312313
         * realName : 测试2号
         * role : {"id":"3124297241460736","name":"审核医师"}
         * specialty : 46593807856173056
         * specialtyName : 临床医学
         * status : 2
         */

        private String avatar;
        private Long birthday;
        private Integer experience;
        private Integer gender;
        private HospitalBean hospital;
        private String id;
        private String idcardPhoto;
        private Integer isDeleted;
        private Integer level;
        private String phone;
        private String realName;
        private RoleBean role;
        private String specialty;
        private String specialtyName;
        private Integer status;
        private boolean check;

        @NoArgsConstructor
        @Data
        public static class HospitalBean {
            /**
             * hospitalName : 加密测试医院
             * id : 125185458752716800
             */

            private String hospitalName;
            private String id;
        }

        @NoArgsConstructor
        @Data
        public static class RoleBean {
            /**
             * id : 3124297241460736
             * name : 审核医师
             */

            private String id;
            private String name;
        }
    }
}
